﻿<%@ OutputCache Location="None" %>
<%@ Register TagPrefix="cc1" Namespace="BEGDC.CC.Web.Control" Assembly="ASBCC.Web" %>

<%@ Page Language="c#" CodeBehind="AccompanyInput.aspx.cs" AutoEventWireup="false"
    Inherits="BEGDC.CC.Web.Common.AccompanyInput" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
    <title>Accompanying Attendee Input</title>
    <base target="_self" />
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <link href="../css/global.css" rel="stylesheet" type="text/css" />
    <link href="../css/style_fu.css" rel="stylesheet" type="text/css" />

    <script type="text/javascript" src="../JS/checkform.js"></script>

    <script language="JavaScript" src="../js/common.js" type="text/javascript"></script>

</head>
<body>
    <form id="Form1" method="post" runat="server">
    <h3 class="ev-header-section">
        &nbsp;Alcatel Attendee (阿尔卡特陪同人员)</h3>
    <table cellspacing="0" cellpadding="0" width="100%" border="0">
        <!--DWLayoutTable-->
        <%--<tr>
					<td class="HeadLine" style="BORDER-BOTTOM: #eeeeee 1px solid; HEIGHT: 35px" vAlign="middle"
						colSpan="2" height="35">&nbsp;<IMG src="../images/item.gif" border="0">&nbsp;Alcatel 
						Attendee</td>
				</tr>--%>
        <%--<tr>
					<td vAlign="top" colSpan="2" height="16"><!--DWLayoutEmptyCell--> &nbsp;</td>
				</tr>--%>
        <tr class="ev-row2">
            <td class="title" style="width: 160px;">
                <span class="Star">* </span>Attendee&nbsp;Name:<br />
                陪同人员
            </td>
            <td class="val">
                <table width="100%">
                    <tr>
                        <td>
                            <cc1:UserSearchControl ID="Ctl_AttendeeSearch" runat="server"></cc1:UserSearchControl>
                        </td>
                    </tr>
                    <tr>
                        <td height="30">
                            (请使用CIL帐号查询,eg."rong h qian")
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <%--<tr class="ev-row2">
            <td class="title" style="width: 160px;">
                <span class="Star">* </span>Contact Information:<br />
                联系信息
            </td>
            <td class="val">
                <asp:TextBox ID="Ctl_ContactInfo" CssClass="COMMENT" Width="250" runat="server"></asp:TextBox>
            </td>
        </tr>--%>
        <tr class="ev-row2">
            <td class="title" style="width: 160px;">
                <span class="Star">* </span>Attendee Mobile:<br />
                陪同人员手机
            </td>
            <td class="val">
                <asp:TextBox ID="Ctl_ContactInfo" runat="server" usage="num+"
                    MaxLength="11" ToolTip="长度规定为11位"></asp:TextBox>
            </td>
        </tr>
        <%--<tr>
					<td vAlign="top" colSpan="2" height="20"><!--DWLayoutEmptyCell--> &nbsp;</td>
				</tr>--%>
        <tr class="ev-row2">
            <%--<td class="Copy-content" vAlign="middle" align="right" height="25"><!--DWLayoutEmptyCell-->
						&nbsp;</td>--%>
            <td colspan="2" class="padding5 ac">
                <asp:ResourceButton ID="Btn_Save" runat="server" Text="Save" ToolTip="SaveTips" CssClass="btn" />
                <asp:ResourceButton ID="Btn_Delete" runat="server" Text="Delete" ToolTip="DeleteTips"
                    Visible="False" CssClass="btn" />
                <asp:ResourceButton ID="Btn_Close" runat="server" Text="Close" ToolTip="CloseTips"
                    Visible="False" CssClass="btn" />
            </td>
        </tr>
    </table>
    </form>

    <script language="javascript" type="text/javascript">

        function OnSave() {
            var phone = document.getElementById("Ctl_ContactInfo").value;
            if (phone == "" || phone == null) {
                alert("Accompanying Staff Mobile could not be empty. \n 陪同人员手机号不能为空!");
                event.returnValue = false;
            }
            else if (phone != "") {
                var regPhone = new RegExp("[0-9\-+ ]{11,}");
                if (!regPhone.test(phone)) {
                    alert("Accompanying Staff Mobile is wrong. Its length must be 11. \n 陪同人员手机号输入有误！手机号长度必须是11位！");
                    event.returnValue = false;
                }
            }
            else {
                if (!window.confirm(SaveInfo)) { event.returnValue = false; }
            }
        }
        function OnDelete() {
            if (!window.confirm(DeleteItem)) { event.returnValue = false; }
        }
        function OnClose() {
            window.close();
            window.returnValue = 'close';
        }
    </script>

</body>
</html>
